home *** CD-ROM | disk | FTP | other *** search
- Path: news-2.csn.net!usenet
- From: charles stoyer <cstoyer@support.interpex.com>
- Newsgroups: comp.lang.c++
- Subject: Old Fortran dog learning new Visual C++ tricks - some questions
- Date: 31 Jan 1996 05:53:20 GMT
- Organization: Interpex limited
- Message-ID: <4en04g$5nv@news-2.csn.net>
- NNTP-Posting-Host: 204.131.233.8
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- I have been working with Microsoft Developers Studio with C++
- and Fortran 90 Powerstation for about two weeks or so now. I
- come from a purely FORTRAN/assembly language background but
- have been programming for over 25 years. I've gotten pretty far
- and have bypassed the "Hello world" project and created a nifty
- little dialog box application of my own, soon to be available
- on the web for free. The application takes geomagnetic models
- from the USGS and other world geomagnetic agencies and gives
- the earth's magnetic field at the entered location and date. A
- DOS version is available now at
- http://www.interpex.com/interpex/ and is called GEOMAGIX.
-
- I may be able to field some questions about getting Fortran to
- call and be called from C++, as I have done both. Will be able
- to be more useful as time goes on, I hope.
-
- It seems that support from compiler/system manufacturers has
- gone to the dogs and either they don't answer or they answer a
- different question than was asked. So I guess we must turn to
- support groups like this.
-
- I have some questions which I have so far not been able to
- figure out. I have the MSDV CD ROM's, so answers could point me
- there or to the online documentation, if appropriate.
-
- 1. What is a .PCH file and what is it for? It is huge (4Mb)
- even for small programs and exists in both the Release and
- Debug directories. I can't find any reference to it in the
- documentation. Do I need it and can I turn it off?
-
- 2. You can't call an item which expects a string or string
- pointer with a Cstring argument. Is there some way to copy to
- or recast as a Cstring to a string or string pointer? UPDATE:
- maybe I was doing something else wrong. Anyway, if you have
- comments on the difference between a string and a Cstring, I'd
- be interested.
-
- 3. I loaded WIN32S from the new MSDN disk onto a machine
- running Windows 3.11, but there are a lot of libraries missing
- when I try to run my application., for example MSVCRT40.DLL,
- MFC40.DLL and the Fortran library MSFRT40.DLL. Should I be
- building my applications differently? Or is there another
- library I need to load? How can I let Win 3.1x users use my
- application? I tried linking a C++/Fortran app with no runtime
- (=DLL?) libraries, but I am calling AFXMesageBox and it didn't
- like that. NOTE THAT it seems that if you mix languages, if you
- DLL one you must DLL the other or you can't link.
-
- 4. MS claims that OpenGL is available only on Windows NT. Is
- that true? What about 3.1x?
-
- 5. It looks like radio buttons are treated in a "dumb" fashion
- by the dialog resource editor and the AppWizard. It seems that
- it is the application's responsibility to see that one button
- is turned on and turn the others off before updating data. Is
- that right?
-
- 6. Is there an easy way to add a standard system icon to a
- dialog box? For instance, the information icon or the warning
- icon, which seems to come with noises when used with
- AFXMessageBox and the UINT constant MB_ICONINFORMATION?
-
- Any answers anyone can give would be appreciated!
-
- --
- "You don't need a weatherman to know which way the wind blows"
- (B. Dylan)
-
- Charles Stoyer, Interpex Limited, Box 839, Golden CO 80401 USA
- cstoyer@interpex.com, CompuServe: 75142.2356
- www/interpex.com/interpex/
-
-
-